<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    <ui:composition template="../TemplateAdmin.xhtml">
        <ui:define name="title">
            <h:outputText value="Complaint Management"></h:outputText>
        </ui:define>       
        <ui:define name="body">  
        <h:form>
            <p:panelGrid columns="2">
                <f:facet name="header">
                    Detail Complaint
                </f:facet>
                <h:outputText value="ID:"/>
                <h:outputText value="#{complaintController.selected.cpID}"/>
                <h:outputText value="User:"/>
                <h:outputText value="#{complaintController.selected.usID.usName}"/>                
                <h:outputText value="Manager:"/>
                <h:outputText value="#{complaintController.selected.mnID.mnName}"/>
                <h:outputText value="Description:"/>
                <h:outputText value="#{complaintController.selected.cpDescription}"/>
                <h:outputText value="Status:"/>
                <h:outputText value="#{complaintController.selected.cpStatus}"/>
                <h:outputText value="Date Created:"/>
                <h:outputText value="#{complaintController.selected.cpCreated}"/>
                <h:outputText value="Date Adjustmented:"/>
                <h:outputText value="#{complaintController.selected.cpAdjustmented}"/>
                <h:outputText value="Order with Complaint:"/>     
                <p:commandButton action="#{orderController.statisticView(complaintController.selected.odID.odID)}" value="Order"/>
                <h:outputText value="Project with Complaint:"/>     
                <p:commandButton action="#{projectController.statisticView(complaintController.selected.odID.odID)}" value="Project"/>
            </p:panelGrid>
            
        </h:form>
        </ui:define>
    </ui:composition>
</html>

